package jhlee42;

import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class J15Ch05Calcurator {

	
	private static char[] asdf;

	public static void main(String [] args){
		int num_1;
		int num_2;
		String asmd;
		int asmd2Int;
		Scanner sc = new Scanner(System.in);
		String result ="";
		
		
		
		String msg = "두 정수와 연산자를 입력하세요..";
		System.out.println(msg);
		
		// New 연산자를 이용한 객체생성은 최대한 천천히 실행 할것!
		Add add_Object = null;	
		Sub sub_Object = null;	
		Mul mul_Object = null;	
		Div div_Object = null;
		
		
		num_1 =	sc.nextInt();
		num_2 =	sc.nextInt();
		asmd = sc.next();
		
		switch (asmd) {
		case "+":
			add_Object = new Add();
			add_Object.setValue(num_1, num_2);
			result += add_Object.calValues();
			break;
		case "-":
			sub_Object = new Sub();
			sub_Object.setValue(num_1, num_2);
			result += sub_Object.calValues();
			break;
		case "*":
			mul_Object = new Mul();
			mul_Object.setValue(num_1, num_2);
			result += mul_Object.calValues();
			break;
		case "/":
			div_Object = new Div();
			div_Object.setValue(num_1, num_2);
			result += div_Object.calValues();
			break;
		}
		
		System.out.println(result);
		
		
//		Add add_Object = new Add();	
//		Sub sub_Object = new Sub();	
//		Mul mul_Object = new Mul();	
//		Div div_Object = new Div();	
		
		//System.out.println(add_Object.setValues());
	}
}


class Calc{
	int a;
	int b;
	
	
	
	void setValue(int a, int b){
		this.a = a;
		this.b = b;
	}
/*	public int calculate(){
		return  0;
	}*/
	

}

class Add extends Calc{
	int calValues(){
		return a+b;
	}
}
class Sub extends Calc{
	public int calValues(){
		return a-b;
	}
}
class Mul extends Calc{
	public int calValues(){
		return a*b;
	}
}
class Div extends Calc{
	public int calValues(){
		return a/b;
	}
}



//InputStreamReader rd  = new InputStreamReader(System.in);
//alphabat_conver = (int) alphabat.charAt(0);
//char[] alphabat_char = { alphabat.charAt(0) };
//asmd = (int) asmd.charAt(0);

